package com.alexgaoyh.MutiModule.Dubbo.RWSeperate.api.${packageName}.write;

import org.apache.ibatis.annotations.Param;

import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.${packageName}.${className};
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.${packageName}.${className}Example;

/**
 * ${className} 模块 写接口
 * @author alexgaoyh
 *
 */
public interface I${className}WriteService {

	int insert(${className} record);

    int insertSelective(${className} record);
    
    int updateByExampleSelective(@Param("record") ${className} record, @Param("example") ${className}Example example);

    int updateByExample(@Param("record") ${className} record, @Param("example") ${className}Example example);

    int updateByPrimaryKeySelective(${className} record);

    int updateByPrimaryKey(${className} record);
    
    int deleteByExample(${className}Example example);

    int deleteByPrimaryKey(Long id);
}
